﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Pages/Site.Master" AutoEventWireup="true" CodeBehind="NewProject.aspx.cs" Inherits="ResearchRepository.RRNewProject" %>
<asp:Content ID="Content1" ContentPlaceHolderID="pageHead" runat="server">
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="pageContent" runat="server">
    <p style="font-weight: bold">
    Create New Project</p>
  
    <table id="newProjectTable" runat="server" class="projectTable">
    <tr>
        <td>
            Project Name:
        </td>
        <td>
            <asp:TextBox ID="projectNameBox" runat="server" MaxLength="100"></asp:TextBox>
            <asp:RequiredFieldValidator runat="server" ControlToValidate="projectNameBox" ValidationGroup="newProjectValidation"
						ErrorMessage="<span style='color:#FF0000'>*</span>">
				</asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator runat="server" ControlToValidate="projectNameBox" ValidationGroup="newProjectValidation"
						ErrorMessage="<span style='color:#FF0000'>Only letters and spaces are allowed.</span>"
						ValidationExpression="^[a-zA-Z ]*$">
				</asp:RegularExpressionValidator>
        </td>
    </tr>
    <tr>
        <td>
            Discipline:
        </td>
        <td>
             <asp:DropDownList ID="disciplineList" runat="server">
             </asp:DropDownList>
             <asp:RequiredFieldValidator runat="server" ControlToValidate="disciplineList" ValidationGroup="newProjectValidation"
						ErrorMessage="<span style='color:#FF0000'>*</span>">
		     </asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td>
            Default (Public) Permissions Setting:
        </td>
        <td>
            <asp:DropDownList ID="privacyList" runat="server">
                <asp:ListItem Selected="True">Hidden</asp:ListItem>
                <asp:ListItem>Visible</asp:ListItem>
                <asp:ListItem>Read</asp:ListItem>
                <asp:ListItem>Write</asp:ListItem>
                <asp:ListItem>Admin</asp:ListItem>
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td>
            Submission Note:
        </td>
        <td>
            <asp:TextBox ID="projectNotesBox" runat="server" Height="150px" 
                MaxLength="65536" TextMode="MultiLine" Width="379px"></asp:TextBox>
        </td>
    </tr>
    
    
   
        <tr>
        <td></td>
        <td>
    New project requests must be approved by administrator before being added to 
    database.<br />
             <br />
    </td>
    </tr>

    <tr>
        <td></td>
        <td>
        <asp:Button ID="submitProjectButton" runat="server" Text="Submit" 
                onclick="submitProjectButton_Click" ValidationGroup="newProjectValidation"/>
        </td>
    </tr>

            </table>
	
    <br />

	<div ID="successDiv" runat="server" visible="false">
		Your new project request has been submitted successfully. <!--TODO: and an additional confirmation e-mail has been sent to '...'.-->
	</div>
	<div ID="failureDiv" runat="server" visible="false">
		Your new project request has not been submitted due to a server error.
	</div>
</asp:Content>
